/*!
 * Copyright (c) 2010 Jacob Essex
 *
 * Dual licenced under MIT or GPL 3 licneces
 * 
 * See the GPL3 or MIT files in the main directory for details
 */

require.def('templates/qsum', [], function(){
    var text = ''
    + '<div class="question-summary" id="question-summary-3013829">'
    + '<div class="statscontainer"> '
    + '  <div class="statsarrow"></div> '
    + '  <div class="stats"> '
    + '      <div class="vote"> '
    + '          <div class="votes"> '
    + '              <span class="vote-count-post"><strong><%=voteCount%></strong></span> '
    + '              <div class="viewcount">votes</div> '
    + '          </div> '
    + '      </div> '
    + '      <% if ( answerCount > 0 ) { %>'
    + '      <div class="status answered"> '
    + '      <% }else{ %>'
    + '      <div class="status unanswered"> '
    + '      <% } %>'
    + '          <strong><%=answerCount%></strong>answer'
    + '      </div> '
    + '  </div> '
    + '  <div class="views" title="<%=views%> views"><%=views%> views</div> '
    + '</div> '
    + '<div class="summary"> '
    + ''    
    + '  <h3><a href="/questions/<%=questionId%>" class="question-hyperlink"><%=title%></a></h3> '
    + '  <div class="excerpt"> '
    + '      <%=excerpt%>'
    + '      <div class="started"> '
    + '          <div class="user-info">'
    + '              <!--<div class="user-action-time">modified <span title="2010-07-07 21:00:21Z" class="relativetime">Jul 7 at 21:00</span></div>-->'
    + '              <div class="user-gravatar32">'
    + '                  <a href="/users/<%=userId%>/"><img src="http://www.gravatar.com/avatar/<%=emailHash%>?s=32&amp;d=identicon&amp;r=PG" height="32" width="32" alt=""></a>'
    + '              </div>'
    + '              <div class="user-details">'
    + '                  <a href="/users/<%=userId%>/" ><%=userName%></a><br>'
    + '                  <span class="reputation-score" title="reputation score"><%=userRep%></span>'
    + '                  </span>'
    + '              </div>'
    + '         </div>' 
    + '      </div>  '
 
    + '      <div class="tags <% for ( var i = 0; i < tags.length; i++ ){ %> t-<%=tags[i]%> <% } %>"> '
    + '        <% for ( var i = 0; i < tags.length; i++ ) { %>'
    + '          <a href="/questions/tagged/<%=tags[i]%>" class="post-tag" title="show questions tagged <%=tags[i]%>" rel="tag"><%=tags[i]%></a>'
    + '        <% } %>'
    + '      </div> '
    + '  </div> '
    + '</div> '
    + '</div>' ;

    return {'text':text};
});
